<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-06-01 16:09:02  */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>DoYouHaoBaby示例：数据查询</title>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/common.css'>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Dyhb.package.js"></script>
 </head>
 <script type="text/javascript">
 <!--
	function showTrace(){

		Dyhb.$('trace_info').innerHTML = Dyhb.$('dyhb_page_trace').innerHTML;
		Dyhb.$('dyhb_page_trace').innerHTML = '';
	}
 //-->

Dyhb.Dom.Ready(
    
	function(){
	    
		showTrace();
	}
);

</script>
 <body>
 <div class="main">
 <h2>DoYouHaoBaby示例之：数据查询</h2>
  <div class="title">数据查询包括普通查询、组合查询、统计查询、定位查询、动态查询和SQL查询。</div><br/>
<div class="result" style="font-weight:normal">
普通列表查询结果：<br/>
<?php $i=1 ;?>
<?php if( is_array( $arrList ) ) : foreach( $arrList as $key=>$v): ?>

   <?php echo( $v['form_id'] ); ?>--<?php echo( $v['form_title'] ); ?><br/>

<?php $i++ ;?>
<?php endforeach;endif; ?>
<hr/>
带条件查询结果：<br/>
<?php $i=1 ;?>
<?php if( is_array( $arrVo ) ) : foreach( $arrVo as $key=>$v): ?>

   <?php echo( $v['form_id'] ); ?>--<?php echo( $v['form_title'] ); ?><br/>

<?php $i++ ;?>
<?php endforeach;endif; ?>
<hr/>
组合查询结果：<br/>
<?php $i=1 ;?>
<?php if( is_array( $arrList2 ) ) : foreach( $arrList2 as $key=>$v): ?>

   <?php echo( $v['form_id'] ); ?>--<?php echo( $v['form_title'] ); ?><br/>

<?php $i++ ;?>
<?php endforeach;endif; ?>
<hr/>
动态查询结果：<br/>
<?php $i=1 ;?>
<?php if( is_array( $arrVo2 ) ) : foreach( $arrVo2 as $key=>$v): ?>

   <?php echo( $key ); ?>--<?php echo( $v ); ?><br/>

<?php $i++ ;?>
<?php endforeach;endif; ?>
</div>
<div class="line"></div>
<div id="trace_info"></div>
<div class="line"></div>
 <div class="title">示例源码</div><br/>
 <div class="li_title">控制器IndexControl类</div><br/>
 <div class="code"><?php highlight_file( APP_LIB_PATH.'/Action/IndexController.class.php' ) ?></div>
</div>
 </body>
</html>
